<html>
<head><meta charset="utf-8"><title>Automatic delegation via specialization · t-lang · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/index.html">t-lang</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/Automatic.20delegation.20via.20specialization.html">Automatic delegation via specialization</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="220184879"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/Automatic%20delegation%20via%20specialization/near/220184879" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Taylor Cramer <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/Automatic.20delegation.20via.20specialization.html#220184879">(Dec 16 2020 at 22:50)</a>:</h4>
<p>Is it expected that this code compile using specialization? I would've expected it to, yet it does not: <a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=c6ef00e1a82b0f82e69038e143e95100">https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=c6ef00e1a82b0f82e69038e143e95100</a></p>
<p>The former more-generic and <code>default</code> impl I would've expected to be overruled in favor of the more specific <code>impl Accept&lt;String&gt; for Parent</code>, yet I get an error.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>